<?
	// 1. start page link of previous block
	if ($paging["prev_start"] == 0) {		?>
		<img src="<?=TEMPLATE?>/img/bttn_previous.gif" border="0" align="absmiddle">&nbsp;&nbsp;&nbsp;
<?	} else {	?>
		<a href="javascript: paging(<? echo $paging["prev_start"] ?>)">
			<img src="<?=TEMPLATE?>/img/bttn_previous.gif" border="0" align="absmiddle">
		</a>&nbsp;&nbsp;&nbsp;
<?	}
	// 2. link pages of block list
	for ($i=0; $i<sizeof($paging["block_list"]); $i++) {
		if ($paging["block_list"][$i] <= $paging["page_cnt"]) {
			if ($paging["block_list"][$i] == $paging["page_num"]) {	?>
				<font color="orange"><? echo $paging["block_list"][$i] ?></font>&nbsp;&nbsp;
<?			} else {		?>
				<a href="javascript: paging(<? echo $paging["block_list"][$i] ?>)">
					<? echo $paging["block_list"][$i] ?></a>&nbsp;&nbsp;
<?			}
		}
	}
	// 3. start page link of next block
	if ($paging["next_start"] <= $paging["page_cnt"]) {		?>
		&nbsp;<a href="javascript: paging(<? echo $paging["next_start"] ?>)">
			<img src="<?=TEMPLATE?>/img/bttn_next.gif" border="0" align="absmiddle">
		</a>
<?	} else {	?>
		&nbsp;<img src="<?=TEMPLATE?>/img/bttn_next.gif" border="0" align="absmiddle">
<?	}			?>
